package com.vizhuo.client.business.meb.mebaddress.url;

import com.vizhuo.client.base.AbstractUrls;
import com.vizhuo.client.business.meb.mebaddress.constant.MebAddressConstant;
import com.vizhuo.client.business.meb.mebaddress.request.AddMebAddressRequest;
import com.vizhuo.client.business.meb.mebaddress.request.FindMebAddressRequest;
import com.vizhuo.client.business.meb.mebaddress.request.RemoveMebAddressRequest;
import com.vizhuo.client.business.meb.mebaddress.vo.MebAddressVo;

/**
 * 接口的调用地址常量类
 * 
 * @author TANDP
 * @date 创建时间：2015年6月29日 下午4:07:43
 * @version 1.0
 * @parameter
 * @since
 * @return
 */
public class MebAddressUrls extends AbstractUrls {

    /**
     * 新建收发货常用地址接口
     */
    public static final String MEB_ADDRESS_ADD = "/mobile/mebaddress/addMebAddress.do";

    /**
     * 删除收发货常用地址接口
     */
    public static final String MEB_ADDRESS_REMOVE = "/mobile/mebaddress/removeMebAddress.do";

    /**
     * 查询收发货常用地址接口
     */
    public static final String MEB_ADDRESS_FIND = "/mobile/mebaddress/findMebAddress.do";

    public static void main(String[] args) {
        // mebAddressFindParam();
        // mebAddressRemoveParam();
        mebAddressAddParam();
    }

    private static void mebAddressAddParam() {
        AddMebAddressRequest req = new AddMebAddressRequest(1, "0", "0", "18621708826");
        MebAddressVo mebAddressVo = new MebAddressVo();
        mebAddressVo.setMebAccId(74);
        mebAddressVo.setAccount("18621708826");
        mebAddressVo.setAccountType("3");
        mebAddressVo.setAddressType("1");
        mebAddressVo.setProvice("11");
        mebAddressVo.setCity("1101");
        mebAddressVo.setCounty("1105");
        mebAddressVo.setAddressDesc("111");
        req.setMebAddressVo(mebAddressVo);
        String ipaddr = "http://127.0.0.1:8081/";
        // System.out.println(ipaddr + MEB_ADDRESS_ADD + "?req=" +
        // JacksonUtil.toJson(req));
    }

    private static void mebAddressRemoveParam() {
        RemoveMebAddressRequest req = new RemoveMebAddressRequest(1, "0", "0", "18621708826");
        req.setAccountId(74);
        req.setMebAddressId(1);
        String ipaddr = "http://127.0.0.1:8081/";
        // System.out.println(ipaddr + MEB_ADDRESS_REMOVE + "?req=" +
        // JacksonUtil.toJson(req));

    }

    private static void mebAddressFindParam() {
        FindMebAddressRequest req = new FindMebAddressRequest(1, "0", "0", "18621708826");
        req.setAccountId(74);
        req.setAddressType(MebAddressConstant.MEB_ADDRESS_START);
        String ipaddr = "http://127.0.0.1:8081/";
        // System.out.println(ipaddr + MEB_ADDRESS_FIND + "?req=" +
        // JacksonUtil.toJson(req));

    }
}
